<?php /* Smarty version Smarty-3.0.7, created on 2011-04-13 09:38:13
         compiled from "templates/index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:54484da5a7450a8018-03171797%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '90093ad09988b466f409a1871733c5589014713e' => 
    array (
      0 => 'templates/index.tpl',
      1 => 1302701241,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '54484da5a7450a8018-03171797',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<html>
	<head>
		<title> Nits! </title>
		<link rel="stylesheet" type="text/css" href="/nitpicker/static/css/css_main.css">
		
		
	</head>
	<body>
		<div style="float: left;"> <?php if ($_smarty_tpl->getVariable('is_logged_in')->value){?><a href="log_out.php"> Log Out! </a> <?php }else{ ?> <a href="log_in.php"> Log In! </a> <?php }?>
		</div>		
		<div style="float: right;">	<a href="new_incident.php"> Pick Nit! </a> </br>
		<a href="http://www.youtube.com/watch?v=JWAUvdUn-r8"> Picknick! </a> 
		</div>
		</br>
		<p> 	
			<center> <h1> <blink> Nitpicker!  </blink> </h1> </center>
		</p>
		<p class=header> It's not a bug, it's just a nit. Pick a here, rate it good and watch it grow. 
		Rate others' nits. Watch the Nitticker. Become a Nit Ridder. </p>
		</br>
			<div class="pic" >
			<img src="http://www.arcadebond.com/games/images/LSS_pacman.gif" width=400px padding=30px />	
		</div>
		<p> Browse per Nitegory:</p>
		
		<p>
					<?php  $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('categories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['category']->key;
?>
					<a href="/nitpicker/view_all.php?category=<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" ><?php echo $_smarty_tpl->tpl_vars['category']->value;?>
 - </a>
					<?php }} ?>	
		</p>
		<p> Nitticker: </p>
		
		<table width="40%" border="1px" >		
			<td>	
					<tr>
						<td> New Nits </td>
						<td> Initial Rating </td>
					</tr>
					<?php  $_smarty_tpl->tpl_vars['incident'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('incidents')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['incident']->key => $_smarty_tpl->tpl_vars['incident']->value){
?>
					<tr>
						<td><a href="view_incident.php?incident_id=<?php echo $_smarty_tpl->tpl_vars['incident']->value['incident_id'];?>
" ><?php echo $_smarty_tpl->tpl_vars['incident']->value['incident_title'];?>
 </a></td>
						<td><?php echo $_smarty_tpl->tpl_vars['incident']->value['initial_rating'];?>
 </td>
					</tr>
					<?php }} ?>				
			</td>
			
	

	
	</body>		
</html>			